SELECT
The SELECT statement allows the access path of in input process to be changed dynamically. The structure of the statement is:
????? SELECT ??? ???????? KEY IS ??????????????????????
(1) (2) (3) (4)
(1) T/F execution conditions
(2) Application ID
(3) File Name
(4) Access leu field name
The application and file name must be specified and must be the same as the Process Control File (PCF) of the input process.
The Access Key Field name must be a valid key for the specified file. SCAN is available during entry of the key field name and only defined keys are presented as choices.
Execution of a SELECT statement effectively instructs the input process to use the specified access path (key) the next time that the input process enters KEY ENTRY. At that point, the user will be prompted to enter a key value for the specified access path.
|